.chat-box {
  background-image: repeating-linear-gradient(
    45deg,
    hsl(0 0% 100%),
    hsl(0 0% 100%) 13px,
    hsl(0 0% 95%) 13px,
    hsl(0 0% 95%) 14px
  );
  // 输入框高度
  $inputHeight: 50px;
  // 顶部高度
  $headerHeight: 40px;
  // 成员列表宽度
  $memberWidth: 220px;
  // 聊天框宽度
  $chatBoxWidth: calc(100% - $memberWidth);
  &-header {
    height: $headerHeight;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #514f4f;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  }
  &-main {
    position: relative;
    width: 100%;
    height: calc(100% - $headerHeight);
    display: flex;
    .self {
      flex-direction: row-reverse;
      text-align: right;
      .chat-bubble {
        display: flex;
        justify-content: flex-end;
      }
    }
    // 人员
    .member-list {
      width: $memberWidth;
      background-color: #fff;
      height: 100%;
      border-right: 1px solid #eee;
      overflow: auto;
      cursor: pointer;
      &::-webkit-scrollbar {
        width: 0;
      }
      .member {
        width: 100%;
        // height: 50px;
        background-color: #e3e3e4;
        padding: 10px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #ccc;
        &:hover {
          background: #fff;
        }
        &-avatar {
          width: 40px;
          height: 40px;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
        &-content {
          flex: 1;
          margin-left: 10px;
          font-size: 13px;
          color: #464242;
          &-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            white-space: nowrap;
            .username {
              text-overflow: ellipsis;
              max-width: 100px;
              overflow: hidden;
            }
            .time {
              opacity: 0.8;
            }
          }
          &-foot {
            font-size: 12px;
            opacity: 0.8;
          }
        }
      }
    }
    .message-list {
      flex: 1;
      width: $chatBoxWidth;
      padding: 0 10px;
      overflow: auto;
      height: calc(100% - $inputHeight);
      position: relative;

      &-item {
        display: flex;
        // align-items: center;
        margin: 15px 0;
        gap: 10px;
        .avatar {
          width: 50px;
          height: 50px;
          :deep(img) {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border-radius: 50%;
            cursor: pointer;
          }
        }
        .main-content {
          flex: 1;
          .chat-bubble {
            &-box {
              width: fit-content;
              max-width: 85%;
              position: relative;
              background-color: #1dcdbc;
              color: #000;
              padding: 7px 15px;
              border-radius: 10px;
              border-bottom-left-radius: 0;
              border-top-right-radius: 0;
              word-break: break-all;
            }
          }
        }
      }
    }
    .chat-input {
      position: absolute;
      width: $chatBoxWidth;
      height: $inputHeight;
      bottom: 0;
      right: 0;
      .el-input {
        height: 100%;
      }
    }
  }
}
:deep(.el-input-group__append) {
  cursor: pointer;
  width: 150px;
  padding: 0;
  button {
    width: 100%;
    height: 100%;
  }
}